package com.leyou.order.controller;

import com.leyou.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class PayController {

    @Autowired
    private OrderService orderService;


    @PostMapping(value = "/pay/wx/notify", produces="application/xml")
    public Map<String, String> wxNotify(@RequestBody Map<String, String> wxParam){
        Map<String, String> result = orderService.wxNotify(wxParam);
        return result;
    }


}
